//
//  AKPSearchTableViewCell.m
//  Copy_AiKapPu_Personal_OC
//
//  Created by taojianz on 2017/7/11.
//  Copyright © 2017年 taojianz. All rights reserved.
//

#import "AKPSearchTableViewCell.h"

@interface AKPSearchTableViewCell()

@end

@implementation AKPSearchTableViewCell



- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(void)setContentByDict:(NSDictionary*)dict{
    [self setCellContent:dict[@"avatar"] name:dict[@"name"] score:dict[@"score"] distance:dict[@"distance"] age:dict[@"age"] height:dict[@"height"] education:dict[@"education"] company:dict[@"company"]];
}

- (void)setCellContent:(NSString *)avatar name:(NSString *)userName score:(NSString *)score distance:(NSString *)distance age:(NSString *)age height:(NSString *)height education:(NSString *)education company:(NSString *)company{
    
    self.avatorImageView.image = [UIImage imageNamed:avatar];
    self.userNameLabel.text = userName;
    self.scoreLabel.text = score;
    self.distanceLabel.text = distance;
    self.ageLabel.text = age;
    self.heightLabel.text = height;
    self.educationLabel.text = education;
    self.companyLabel.text = company;
    
}



- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

}

@end
